"""
driver.close()  # 只关闭当前窗口
driver.quit()  #关闭浏览器并退出驱动
"""

from time import sleep
from selenium import webdriver
from selenium.webdriver.common.by import By

# 打开Chrome浏览器,使用driver保存浏览器对象
driver = webdriver.Chrome()

print(driver.title)
driver.close()
driver.quit()